
import { usePermissStore } from '@/store/permiss';

export const permissDirective = (app) => {
    const permiss = usePermissStore();
    app.directive('permiss', {
        mounted(el, binding) {
            if (!permiss.key.includes(String(binding.value))) {
                el['hidden'] = true;
            }
        },
    });
} 
